// Lean compiler output
// Module: Lean.Elab.Tactic.Do.ProofMode.Focus
// Imports: public import Lean.Elab.Tactic.Do.ProofMode.MGoal
#include <lean/lean.h>
#if defined(__clang__)
#pragma clang diagnostic ignored "-Wunused-parameter"
#pragma clang diagnostic ignored "-Wunused-label"
#elif defined(__GNUC__) && !defined(__CLANG__)
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wunused-label"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#ifdef __cplusplus
extern "C" {
#endif
lean_object* l_Lean_Expr_const___override(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_restGoal(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0___redArg___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_recombineGoal(lean_object*, lean_object*);
lean_object* l_Lean_TSyntax_getId(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps(lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__0;
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHyp(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__0;
lean_object* l_Lean_mkApp8(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_mkAppB(lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult;
lean_object* l_Lean_Elab_Tactic_Do_ProofMode_SPred_mkAnd(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Tactic_Do_ProofMode_parseHyp_x3f(lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__2;
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__3;
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__3;
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__3;
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__8;
lean_object* l_Lean_Name_mkStr5(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__7;
lean_object* l_Lean_stringToMessageData(lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__1;
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__1;
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__9;
lean_object* l_Lean_mkApp6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__5;
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__1;
lean_object* l_Lean_MessageData_ofSyntax(lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__1;
lean_object* l_Lean_Elab_Tactic_Do_ProofMode_parseAnd_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_restGoal___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__11;
lean_object* lean_st_ref_get(lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__4;
lean_object* l_Lean_mkConst(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__2;
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__4;
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHyp___boxed(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__0;
uint8_t lean_name_eq(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__2;
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0___redArg(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__12;
LEAN_EXPORT lean_object* l_panic___at___00Lean_Elab_Tactic_Do_ProofMode_focusHyp_spec__0(lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__10;
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__5;
lean_object* l_Lean_Name_mkStr6(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Tactic_Do_ProofMode_parseEmptyHyp_x3f(lean_object*);
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Tactic_Do_ProofMode_SPred_mkAnd_x21(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__6;
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__2;
lean_object* lean_panic_fn(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__0;
lean_object* l_Lean_Elab_Tactic_Do_ProofMode_addHypInfo(lean_object*, lean_object*, lean_object*, uint8_t, lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default;
lean_object* l_mkPanicMessageWithDecl(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Name_mkStr1(lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps___closed__0;
lean_object* lean_string_append(lean_object*, lean_object*);
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__13;
static lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps___closed__1;
lean_object* lean_expr_dbg_to_string(lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___boxed(lean_object*, lean_object*, lean_object*, lean_object*);
lean_object* l_Lean_Elab_Tactic_Do_ProofMode_emptyHyp(lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp(lean_object*, lean_object*, lean_object*, lean_object*);
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0___boxed(lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*, lean_object*);
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("_inhabitedExprDummy", 19, 19);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__0;
x_2 = l_Lean_Name_mkStr1(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; 
x_1 = lean_box(0);
x_2 = l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__1;
x_3 = l_Lean_Expr_const___override(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__2;
x_2 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_2, 0, x_1);
lean_ctor_set(x_2, 1, x_1);
lean_ctor_set(x_2, 2, x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__3;
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult() {
_start:
{
lean_object* x_1; 
x_1 = l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default;
return x_1;
}
}
LEAN_EXPORT lean_object* l_panic___at___00Lean_Elab_Tactic_Do_ProofMode_focusHyp_spec__0(lean_object* x_1) {
_start:
{
lean_object* x_2; lean_object* x_3; 
x_2 = lean_box(0);
x_3 = lean_panic_fn(x_2, x_1);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Std", 3, 3);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Do", 2, 2);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("SPred", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__3() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Tactic", 6, 6);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Focus", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__5() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("this", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__6() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_1 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__5;
x_2 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__4;
x_3 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__3;
x_4 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__2;
x_5 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__1;
x_6 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__0;
x_7 = l_Lean_Name_mkStr6(x_6, x_5, x_4, x_3, x_2, x_1);
return x_7;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__7() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("left", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__8() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_1 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__7;
x_2 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__4;
x_3 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__3;
x_4 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__2;
x_5 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__1;
x_6 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__0;
x_7 = l_Lean_Name_mkStr6(x_6, x_5, x_4, x_3, x_2, x_1);
return x_7;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__9() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("right", 5, 5);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__10() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_1 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__9;
x_2 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__4;
x_3 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__3;
x_4 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__2;
x_5 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__1;
x_6 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__0;
x_7 = l_Lean_Name_mkStr6(x_6, x_5, x_4, x_3, x_2, x_1);
return x_7;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__11() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Elab.Tactic.Do.ProofMode.Focus", 35, 35);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__12() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("Lean.Elab.Tactic.Do.ProofMode.focusHyp", 38, 38);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__13() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("focusHyp: hypothesis without proper metadata: ", 46, 46);
return x_1;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
lean_inc_ref(x_3);
x_5 = l_Lean_Elab_Tactic_Do_ProofMode_parseHyp_x3f(x_3);
if (lean_obj_tag(x_5) == 1)
{
uint8_t x_6; 
x_6 = !lean_is_exclusive(x_5);
if (x_6 == 0)
{
lean_object* x_7; uint8_t x_8; 
x_7 = lean_ctor_get(x_5, 0);
x_8 = !lean_is_exclusive(x_7);
if (x_8 == 0)
{
lean_object* x_9; lean_object* x_10; lean_object* x_11; uint8_t x_12; 
x_9 = lean_ctor_get(x_7, 0);
x_10 = lean_ctor_get(x_7, 2);
lean_dec(x_10);
x_11 = lean_ctor_get(x_7, 1);
lean_dec(x_11);
x_12 = lean_name_eq(x_9, x_4);
lean_dec(x_9);
if (x_12 == 0)
{
lean_object* x_13; 
lean_free_object(x_7);
lean_free_object(x_5);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_13 = lean_box(0);
return x_13;
}
else
{
lean_object* x_14; lean_object* x_15; lean_object* x_16; lean_object* x_17; lean_object* x_18; lean_object* x_19; 
lean_inc_ref(x_2);
lean_inc(x_1);
x_14 = l_Lean_Elab_Tactic_Do_ProofMode_emptyHyp(x_1, x_2);
x_15 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__6;
x_16 = lean_box(0);
x_17 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_17, 0, x_1);
lean_ctor_set(x_17, 1, x_16);
x_18 = l_Lean_mkConst(x_15, x_17);
lean_inc_ref(x_3);
x_19 = l_Lean_mkAppB(x_18, x_2, x_3);
lean_ctor_set(x_7, 2, x_19);
lean_ctor_set(x_7, 1, x_14);
lean_ctor_set(x_7, 0, x_3);
return x_5;
}
}
else
{
lean_object* x_20; uint8_t x_21; 
x_20 = lean_ctor_get(x_7, 0);
lean_inc(x_20);
lean_dec(x_7);
x_21 = lean_name_eq(x_20, x_4);
lean_dec(x_20);
if (x_21 == 0)
{
lean_object* x_22; 
lean_free_object(x_5);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_22 = lean_box(0);
return x_22;
}
else
{
lean_object* x_23; lean_object* x_24; lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; 
lean_inc_ref(x_2);
lean_inc(x_1);
x_23 = l_Lean_Elab_Tactic_Do_ProofMode_emptyHyp(x_1, x_2);
x_24 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__6;
x_25 = lean_box(0);
x_26 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_26, 0, x_1);
lean_ctor_set(x_26, 1, x_25);
x_27 = l_Lean_mkConst(x_24, x_26);
lean_inc_ref(x_3);
x_28 = l_Lean_mkAppB(x_27, x_2, x_3);
x_29 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_29, 0, x_3);
lean_ctor_set(x_29, 1, x_23);
lean_ctor_set(x_29, 2, x_28);
lean_ctor_set(x_5, 0, x_29);
return x_5;
}
}
}
else
{
lean_object* x_30; lean_object* x_31; lean_object* x_32; uint8_t x_33; 
x_30 = lean_ctor_get(x_5, 0);
lean_inc(x_30);
lean_dec(x_5);
x_31 = lean_ctor_get(x_30, 0);
lean_inc(x_31);
if (lean_is_exclusive(x_30)) {
 lean_ctor_release(x_30, 0);
 lean_ctor_release(x_30, 1);
 lean_ctor_release(x_30, 2);
 x_32 = x_30;
} else {
 lean_dec_ref(x_30);
 x_32 = lean_box(0);
}
x_33 = lean_name_eq(x_31, x_4);
lean_dec(x_31);
if (x_33 == 0)
{
lean_object* x_34; 
lean_dec(x_32);
lean_dec_ref(x_3);
lean_dec_ref(x_2);
lean_dec(x_1);
x_34 = lean_box(0);
return x_34;
}
else
{
lean_object* x_35; lean_object* x_36; lean_object* x_37; lean_object* x_38; lean_object* x_39; lean_object* x_40; lean_object* x_41; lean_object* x_42; 
lean_inc_ref(x_2);
lean_inc(x_1);
x_35 = l_Lean_Elab_Tactic_Do_ProofMode_emptyHyp(x_1, x_2);
x_36 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__6;
x_37 = lean_box(0);
x_38 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_38, 0, x_1);
lean_ctor_set(x_38, 1, x_37);
x_39 = l_Lean_mkConst(x_36, x_38);
lean_inc_ref(x_3);
x_40 = l_Lean_mkAppB(x_39, x_2, x_3);
if (lean_is_scalar(x_32)) {
 x_41 = lean_alloc_ctor(0, 3, 0);
} else {
 x_41 = x_32;
}
lean_ctor_set(x_41, 0, x_3);
lean_ctor_set(x_41, 1, x_35);
lean_ctor_set(x_41, 2, x_40);
x_42 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_42, 0, x_41);
return x_42;
}
}
}
else
{
lean_object* x_43; 
lean_dec(x_5);
lean_dec_ref(x_2);
lean_dec(x_1);
x_43 = l_Lean_Elab_Tactic_Do_ProofMode_parseAnd_x3f(x_3);
if (lean_obj_tag(x_43) == 1)
{
lean_object* x_44; lean_object* x_45; lean_object* x_46; lean_object* x_47; lean_object* x_48; lean_object* x_49; lean_object* x_50; lean_object* x_51; 
lean_dec_ref(x_3);
x_44 = lean_ctor_get(x_43, 0);
lean_inc(x_44);
lean_dec_ref(x_43);
x_45 = lean_ctor_get(x_44, 1);
lean_inc(x_45);
x_46 = lean_ctor_get(x_45, 1);
lean_inc(x_46);
x_47 = lean_ctor_get(x_44, 0);
lean_inc(x_47);
lean_dec(x_44);
x_48 = lean_ctor_get(x_45, 0);
lean_inc(x_48);
lean_dec(x_45);
x_49 = lean_ctor_get(x_46, 0);
lean_inc(x_49);
x_50 = lean_ctor_get(x_46, 1);
lean_inc(x_50);
lean_dec(x_46);
lean_inc(x_50);
lean_inc(x_48);
lean_inc(x_47);
x_51 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp(x_47, x_48, x_50, x_4);
if (lean_obj_tag(x_51) == 0)
{
if (lean_obj_tag(x_51) == 0)
{
lean_object* x_52; 
lean_inc(x_49);
lean_inc(x_48);
lean_inc(x_47);
x_52 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp(x_47, x_48, x_49, x_4);
if (lean_obj_tag(x_52) == 0)
{
lean_dec(x_50);
lean_dec(x_49);
lean_dec(x_48);
lean_dec(x_47);
return x_52;
}
else
{
uint8_t x_53; 
x_53 = !lean_is_exclusive(x_52);
if (x_53 == 0)
{
lean_object* x_54; uint8_t x_55; 
x_54 = lean_ctor_get(x_52, 0);
x_55 = !lean_is_exclusive(x_54);
if (x_55 == 0)
{
lean_object* x_56; lean_object* x_57; lean_object* x_58; lean_object* x_59; uint8_t x_60; 
x_56 = lean_ctor_get(x_54, 0);
x_57 = lean_ctor_get(x_54, 1);
x_58 = lean_ctor_get(x_54, 2);
lean_inc(x_50);
lean_inc_ref(x_57);
lean_inc(x_48);
lean_inc(x_47);
x_59 = l_Lean_Elab_Tactic_Do_ProofMode_SPred_mkAnd(x_47, x_48, x_57, x_50);
x_60 = !lean_is_exclusive(x_59);
if (x_60 == 0)
{
lean_object* x_61; lean_object* x_62; lean_object* x_63; lean_object* x_64; lean_object* x_65; lean_object* x_66; 
x_61 = lean_ctor_get(x_59, 0);
x_62 = lean_ctor_get(x_59, 1);
x_63 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__8;
x_64 = lean_box(0);
lean_ctor_set_tag(x_59, 1);
lean_ctor_set(x_59, 1, x_64);
lean_ctor_set(x_59, 0, x_47);
x_65 = l_Lean_mkConst(x_63, x_59);
lean_inc_ref(x_56);
lean_inc(x_61);
x_66 = l_Lean_mkApp8(x_65, x_48, x_49, x_57, x_50, x_61, x_56, x_58, x_62);
lean_ctor_set(x_54, 2, x_66);
lean_ctor_set(x_54, 1, x_61);
return x_52;
}
else
{
lean_object* x_67; lean_object* x_68; lean_object* x_69; lean_object* x_70; lean_object* x_71; lean_object* x_72; lean_object* x_73; 
x_67 = lean_ctor_get(x_59, 0);
x_68 = lean_ctor_get(x_59, 1);
lean_inc(x_68);
lean_inc(x_67);
lean_dec(x_59);
x_69 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__8;
x_70 = lean_box(0);
x_71 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_71, 0, x_47);
lean_ctor_set(x_71, 1, x_70);
x_72 = l_Lean_mkConst(x_69, x_71);
lean_inc_ref(x_56);
lean_inc(x_67);
x_73 = l_Lean_mkApp8(x_72, x_48, x_49, x_57, x_50, x_67, x_56, x_58, x_68);
lean_ctor_set(x_54, 2, x_73);
lean_ctor_set(x_54, 1, x_67);
return x_52;
}
}
else
{
lean_object* x_74; lean_object* x_75; lean_object* x_76; lean_object* x_77; lean_object* x_78; lean_object* x_79; lean_object* x_80; lean_object* x_81; lean_object* x_82; lean_object* x_83; lean_object* x_84; lean_object* x_85; lean_object* x_86; 
x_74 = lean_ctor_get(x_54, 0);
x_75 = lean_ctor_get(x_54, 1);
x_76 = lean_ctor_get(x_54, 2);
lean_inc(x_76);
lean_inc(x_75);
lean_inc(x_74);
lean_dec(x_54);
lean_inc(x_50);
lean_inc_ref(x_75);
lean_inc(x_48);
lean_inc(x_47);
x_77 = l_Lean_Elab_Tactic_Do_ProofMode_SPred_mkAnd(x_47, x_48, x_75, x_50);
x_78 = lean_ctor_get(x_77, 0);
lean_inc(x_78);
x_79 = lean_ctor_get(x_77, 1);
lean_inc(x_79);
if (lean_is_exclusive(x_77)) {
 lean_ctor_release(x_77, 0);
 lean_ctor_release(x_77, 1);
 x_80 = x_77;
} else {
 lean_dec_ref(x_77);
 x_80 = lean_box(0);
}
x_81 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__8;
x_82 = lean_box(0);
if (lean_is_scalar(x_80)) {
 x_83 = lean_alloc_ctor(1, 2, 0);
} else {
 x_83 = x_80;
 lean_ctor_set_tag(x_83, 1);
}
lean_ctor_set(x_83, 0, x_47);
lean_ctor_set(x_83, 1, x_82);
x_84 = l_Lean_mkConst(x_81, x_83);
lean_inc_ref(x_74);
lean_inc(x_78);
x_85 = l_Lean_mkApp8(x_84, x_48, x_49, x_75, x_50, x_78, x_74, x_76, x_79);
x_86 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_86, 0, x_74);
lean_ctor_set(x_86, 1, x_78);
lean_ctor_set(x_86, 2, x_85);
lean_ctor_set(x_52, 0, x_86);
return x_52;
}
}
else
{
lean_object* x_87; lean_object* x_88; lean_object* x_89; lean_object* x_90; lean_object* x_91; lean_object* x_92; lean_object* x_93; lean_object* x_94; lean_object* x_95; lean_object* x_96; lean_object* x_97; lean_object* x_98; lean_object* x_99; lean_object* x_100; lean_object* x_101; lean_object* x_102; 
x_87 = lean_ctor_get(x_52, 0);
lean_inc(x_87);
lean_dec(x_52);
x_88 = lean_ctor_get(x_87, 0);
lean_inc_ref(x_88);
x_89 = lean_ctor_get(x_87, 1);
lean_inc_ref(x_89);
x_90 = lean_ctor_get(x_87, 2);
lean_inc_ref(x_90);
if (lean_is_exclusive(x_87)) {
 lean_ctor_release(x_87, 0);
 lean_ctor_release(x_87, 1);
 lean_ctor_release(x_87, 2);
 x_91 = x_87;
} else {
 lean_dec_ref(x_87);
 x_91 = lean_box(0);
}
lean_inc(x_50);
lean_inc_ref(x_89);
lean_inc(x_48);
lean_inc(x_47);
x_92 = l_Lean_Elab_Tactic_Do_ProofMode_SPred_mkAnd(x_47, x_48, x_89, x_50);
x_93 = lean_ctor_get(x_92, 0);
lean_inc(x_93);
x_94 = lean_ctor_get(x_92, 1);
lean_inc(x_94);
if (lean_is_exclusive(x_92)) {
 lean_ctor_release(x_92, 0);
 lean_ctor_release(x_92, 1);
 x_95 = x_92;
} else {
 lean_dec_ref(x_92);
 x_95 = lean_box(0);
}
x_96 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__8;
x_97 = lean_box(0);
if (lean_is_scalar(x_95)) {
 x_98 = lean_alloc_ctor(1, 2, 0);
} else {
 x_98 = x_95;
 lean_ctor_set_tag(x_98, 1);
}
lean_ctor_set(x_98, 0, x_47);
lean_ctor_set(x_98, 1, x_97);
x_99 = l_Lean_mkConst(x_96, x_98);
lean_inc_ref(x_88);
lean_inc(x_93);
x_100 = l_Lean_mkApp8(x_99, x_48, x_49, x_89, x_50, x_93, x_88, x_90, x_94);
if (lean_is_scalar(x_91)) {
 x_101 = lean_alloc_ctor(0, 3, 0);
} else {
 x_101 = x_91;
}
lean_ctor_set(x_101, 0, x_88);
lean_ctor_set(x_101, 1, x_93);
lean_ctor_set(x_101, 2, x_100);
x_102 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_102, 0, x_101);
return x_102;
}
}
}
else
{
lean_dec(x_50);
lean_dec(x_49);
lean_dec(x_48);
lean_dec(x_47);
return x_51;
}
}
else
{
uint8_t x_103; 
x_103 = !lean_is_exclusive(x_51);
if (x_103 == 0)
{
lean_object* x_104; uint8_t x_105; 
x_104 = lean_ctor_get(x_51, 0);
x_105 = !lean_is_exclusive(x_104);
if (x_105 == 0)
{
lean_object* x_106; lean_object* x_107; lean_object* x_108; lean_object* x_109; uint8_t x_110; 
x_106 = lean_ctor_get(x_104, 0);
x_107 = lean_ctor_get(x_104, 1);
x_108 = lean_ctor_get(x_104, 2);
lean_inc_ref(x_107);
lean_inc(x_49);
lean_inc(x_48);
lean_inc(x_47);
x_109 = l_Lean_Elab_Tactic_Do_ProofMode_SPred_mkAnd(x_47, x_48, x_49, x_107);
x_110 = !lean_is_exclusive(x_109);
if (x_110 == 0)
{
lean_object* x_111; lean_object* x_112; lean_object* x_113; lean_object* x_114; lean_object* x_115; lean_object* x_116; 
x_111 = lean_ctor_get(x_109, 0);
x_112 = lean_ctor_get(x_109, 1);
x_113 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__10;
x_114 = lean_box(0);
lean_ctor_set_tag(x_109, 1);
lean_ctor_set(x_109, 1, x_114);
lean_ctor_set(x_109, 0, x_47);
x_115 = l_Lean_mkConst(x_113, x_109);
lean_inc_ref(x_106);
lean_inc(x_111);
x_116 = l_Lean_mkApp8(x_115, x_48, x_49, x_50, x_107, x_111, x_106, x_108, x_112);
lean_ctor_set(x_104, 2, x_116);
lean_ctor_set(x_104, 1, x_111);
return x_51;
}
else
{
lean_object* x_117; lean_object* x_118; lean_object* x_119; lean_object* x_120; lean_object* x_121; lean_object* x_122; lean_object* x_123; 
x_117 = lean_ctor_get(x_109, 0);
x_118 = lean_ctor_get(x_109, 1);
lean_inc(x_118);
lean_inc(x_117);
lean_dec(x_109);
x_119 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__10;
x_120 = lean_box(0);
x_121 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_121, 0, x_47);
lean_ctor_set(x_121, 1, x_120);
x_122 = l_Lean_mkConst(x_119, x_121);
lean_inc_ref(x_106);
lean_inc(x_117);
x_123 = l_Lean_mkApp8(x_122, x_48, x_49, x_50, x_107, x_117, x_106, x_108, x_118);
lean_ctor_set(x_104, 2, x_123);
lean_ctor_set(x_104, 1, x_117);
return x_51;
}
}
else
{
lean_object* x_124; lean_object* x_125; lean_object* x_126; lean_object* x_127; lean_object* x_128; lean_object* x_129; lean_object* x_130; lean_object* x_131; lean_object* x_132; lean_object* x_133; lean_object* x_134; lean_object* x_135; lean_object* x_136; 
x_124 = lean_ctor_get(x_104, 0);
x_125 = lean_ctor_get(x_104, 1);
x_126 = lean_ctor_get(x_104, 2);
lean_inc(x_126);
lean_inc(x_125);
lean_inc(x_124);
lean_dec(x_104);
lean_inc_ref(x_125);
lean_inc(x_49);
lean_inc(x_48);
lean_inc(x_47);
x_127 = l_Lean_Elab_Tactic_Do_ProofMode_SPred_mkAnd(x_47, x_48, x_49, x_125);
x_128 = lean_ctor_get(x_127, 0);
lean_inc(x_128);
x_129 = lean_ctor_get(x_127, 1);
lean_inc(x_129);
if (lean_is_exclusive(x_127)) {
 lean_ctor_release(x_127, 0);
 lean_ctor_release(x_127, 1);
 x_130 = x_127;
} else {
 lean_dec_ref(x_127);
 x_130 = lean_box(0);
}
x_131 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__10;
x_132 = lean_box(0);
if (lean_is_scalar(x_130)) {
 x_133 = lean_alloc_ctor(1, 2, 0);
} else {
 x_133 = x_130;
 lean_ctor_set_tag(x_133, 1);
}
lean_ctor_set(x_133, 0, x_47);
lean_ctor_set(x_133, 1, x_132);
x_134 = l_Lean_mkConst(x_131, x_133);
lean_inc_ref(x_124);
lean_inc(x_128);
x_135 = l_Lean_mkApp8(x_134, x_48, x_49, x_50, x_125, x_128, x_124, x_126, x_129);
x_136 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_136, 0, x_124);
lean_ctor_set(x_136, 1, x_128);
lean_ctor_set(x_136, 2, x_135);
lean_ctor_set(x_51, 0, x_136);
return x_51;
}
}
else
{
lean_object* x_137; lean_object* x_138; lean_object* x_139; lean_object* x_140; lean_object* x_141; lean_object* x_142; lean_object* x_143; lean_object* x_144; lean_object* x_145; lean_object* x_146; lean_object* x_147; lean_object* x_148; lean_object* x_149; lean_object* x_150; lean_object* x_151; lean_object* x_152; 
x_137 = lean_ctor_get(x_51, 0);
lean_inc(x_137);
lean_dec(x_51);
x_138 = lean_ctor_get(x_137, 0);
lean_inc_ref(x_138);
x_139 = lean_ctor_get(x_137, 1);
lean_inc_ref(x_139);
x_140 = lean_ctor_get(x_137, 2);
lean_inc_ref(x_140);
if (lean_is_exclusive(x_137)) {
 lean_ctor_release(x_137, 0);
 lean_ctor_release(x_137, 1);
 lean_ctor_release(x_137, 2);
 x_141 = x_137;
} else {
 lean_dec_ref(x_137);
 x_141 = lean_box(0);
}
lean_inc_ref(x_139);
lean_inc(x_49);
lean_inc(x_48);
lean_inc(x_47);
x_142 = l_Lean_Elab_Tactic_Do_ProofMode_SPred_mkAnd(x_47, x_48, x_49, x_139);
x_143 = lean_ctor_get(x_142, 0);
lean_inc(x_143);
x_144 = lean_ctor_get(x_142, 1);
lean_inc(x_144);
if (lean_is_exclusive(x_142)) {
 lean_ctor_release(x_142, 0);
 lean_ctor_release(x_142, 1);
 x_145 = x_142;
} else {
 lean_dec_ref(x_142);
 x_145 = lean_box(0);
}
x_146 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__10;
x_147 = lean_box(0);
if (lean_is_scalar(x_145)) {
 x_148 = lean_alloc_ctor(1, 2, 0);
} else {
 x_148 = x_145;
 lean_ctor_set_tag(x_148, 1);
}
lean_ctor_set(x_148, 0, x_47);
lean_ctor_set(x_148, 1, x_147);
x_149 = l_Lean_mkConst(x_146, x_148);
lean_inc_ref(x_138);
lean_inc(x_143);
x_150 = l_Lean_mkApp8(x_149, x_48, x_49, x_50, x_139, x_143, x_138, x_140, x_144);
if (lean_is_scalar(x_141)) {
 x_151 = lean_alloc_ctor(0, 3, 0);
} else {
 x_151 = x_141;
}
lean_ctor_set(x_151, 0, x_138);
lean_ctor_set(x_151, 1, x_143);
lean_ctor_set(x_151, 2, x_150);
x_152 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_152, 0, x_151);
return x_152;
}
}
}
else
{
lean_object* x_153; 
lean_dec(x_43);
lean_inc_ref(x_3);
x_153 = l_Lean_Elab_Tactic_Do_ProofMode_parseEmptyHyp_x3f(x_3);
if (lean_obj_tag(x_153) == 1)
{
lean_object* x_154; 
lean_dec_ref(x_153);
lean_dec_ref(x_3);
x_154 = lean_box(0);
return x_154;
}
else
{
lean_object* x_155; lean_object* x_156; lean_object* x_157; lean_object* x_158; lean_object* x_159; lean_object* x_160; lean_object* x_161; lean_object* x_162; lean_object* x_163; 
lean_dec(x_153);
x_155 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__11;
x_156 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__12;
x_157 = lean_unsigned_to_nat(46u);
x_158 = lean_unsigned_to_nat(4u);
x_159 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__13;
x_160 = lean_expr_dbg_to_string(x_3);
lean_dec_ref(x_3);
x_161 = lean_string_append(x_159, x_160);
lean_dec_ref(x_160);
x_162 = l_mkPanicMessageWithDecl(x_155, x_156, x_157, x_158, x_161);
lean_dec_ref(x_161);
x_163 = l_panic___at___00Lean_Elab_Tactic_Do_ProofMode_focusHyp_spec__0(x_162);
return x_163;
}
}
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; 
x_5 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp(x_1, x_2, x_3, x_4);
lean_dec(x_4);
return x_5;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHyp(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_3 = lean_ctor_get(x_1, 0);
lean_inc(x_3);
x_4 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_4);
x_5 = lean_ctor_get(x_1, 2);
lean_inc_ref(x_5);
lean_dec_ref(x_1);
x_6 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp(x_3, x_4, x_5, x_2);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHyp___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHyp(x_1, x_2);
lean_dec(x_2);
return x_3;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("bientails", 9, 9);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__1() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("refl", 4, 4);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__2() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; 
x_1 = l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__1;
x_2 = l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__0;
x_3 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__2;
x_4 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__1;
x_5 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__0;
x_6 = l_Lean_Name_mkStr5(x_5, x_4, x_3, x_2, x_1);
return x_6;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4) {
_start:
{
lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; 
x_5 = l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__2;
x_6 = lean_box(0);
lean_inc(x_1);
x_7 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_7, 0, x_1);
lean_ctor_set(x_7, 1, x_6);
x_8 = l_Lean_mkConst(x_5, x_7);
lean_inc_ref(x_4);
lean_inc_ref(x_3);
lean_inc_ref(x_2);
x_9 = l_Lean_Elab_Tactic_Do_ProofMode_SPred_mkAnd_x21(x_1, x_2, x_3, x_4);
x_10 = l_Lean_mkAppB(x_8, x_2, x_9);
x_11 = lean_alloc_ctor(0, 3, 0);
lean_ctor_set(x_11, 0, x_4);
lean_ctor_set(x_11, 1, x_3);
lean_ctor_set(x_11, 2, x_10);
return x_11;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_restGoal(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; 
x_4 = lean_ctor_get(x_2, 2);
lean_dec(x_4);
x_5 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_5);
lean_ctor_set(x_2, 2, x_5);
return x_2;
}
else
{
lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; 
x_6 = lean_ctor_get(x_2, 0);
x_7 = lean_ctor_get(x_2, 1);
x_8 = lean_ctor_get(x_2, 3);
lean_inc(x_8);
lean_inc(x_7);
lean_inc(x_6);
lean_dec(x_2);
x_9 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_9);
x_10 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_10, 0, x_6);
lean_ctor_set(x_10, 1, x_7);
lean_ctor_set(x_10, 2, x_9);
lean_ctor_set(x_10, 3, x_8);
return x_10;
}
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_restGoal___boxed(lean_object* x_1, lean_object* x_2) {
_start:
{
lean_object* x_3; 
x_3 = l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_restGoal(x_1, x_2);
lean_dec_ref(x_1);
return x_3;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_recombineGoal(lean_object* x_1, lean_object* x_2) {
_start:
{
uint8_t x_3; 
x_3 = !lean_is_exclusive(x_2);
if (x_3 == 0)
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; 
x_4 = lean_ctor_get(x_2, 0);
x_5 = lean_ctor_get(x_2, 1);
x_6 = lean_ctor_get(x_2, 2);
lean_dec(x_6);
x_7 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_7);
x_8 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_8);
lean_dec_ref(x_1);
lean_inc_ref(x_5);
lean_inc(x_4);
x_9 = l_Lean_Elab_Tactic_Do_ProofMode_SPred_mkAnd_x21(x_4, x_5, x_8, x_7);
lean_ctor_set(x_2, 2, x_9);
return x_2;
}
else
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_10 = lean_ctor_get(x_2, 0);
x_11 = lean_ctor_get(x_2, 1);
x_12 = lean_ctor_get(x_2, 3);
lean_inc(x_12);
lean_inc(x_11);
lean_inc(x_10);
lean_dec(x_2);
x_13 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_13);
x_14 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_14);
lean_dec_ref(x_1);
lean_inc_ref(x_11);
lean_inc(x_10);
x_15 = l_Lean_Elab_Tactic_Do_ProofMode_SPred_mkAnd_x21(x_10, x_11, x_14, x_13);
x_16 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_16, 0, x_10);
lean_ctor_set(x_16, 1, x_11);
lean_ctor_set(x_16, 2, x_15);
lean_ctor_set(x_16, 3, x_12);
return x_16;
}
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("rewrite_hyps", 12, 12);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; lean_object* x_3; lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; 
x_1 = l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps___closed__0;
x_2 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__4;
x_3 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__3;
x_4 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__2;
x_5 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__1;
x_6 = l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__0;
x_7 = l_Lean_Name_mkStr6(x_6, x_5, x_4, x_3, x_2, x_1);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps(lean_object* x_1, lean_object* x_2, lean_object* x_3) {
_start:
{
lean_object* x_4; lean_object* x_5; lean_object* x_6; lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; lean_object* x_16; 
x_4 = lean_ctor_get(x_2, 0);
lean_inc(x_4);
x_5 = lean_ctor_get(x_2, 1);
lean_inc_ref(x_5);
x_6 = lean_ctor_get(x_2, 2);
lean_inc_ref(x_6);
x_7 = lean_ctor_get(x_2, 3);
lean_inc_ref(x_7);
lean_dec_ref(x_2);
x_8 = lean_ctor_get(x_1, 0);
lean_inc_ref(x_8);
x_9 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_9);
x_10 = lean_ctor_get(x_1, 2);
lean_inc_ref(x_10);
lean_dec_ref(x_1);
x_11 = l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps___closed__1;
x_12 = lean_box(0);
lean_inc(x_4);
x_13 = lean_alloc_ctor(1, 2, 0);
lean_ctor_set(x_13, 0, x_4);
lean_ctor_set(x_13, 1, x_12);
x_14 = l_Lean_mkConst(x_11, x_13);
lean_inc_ref(x_5);
x_15 = l_Lean_Elab_Tactic_Do_ProofMode_SPred_mkAnd_x21(x_4, x_5, x_9, x_8);
x_16 = l_Lean_mkApp6(x_14, x_5, x_6, x_15, x_7, x_10, x_3);
return x_16;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_7; lean_object* x_8; lean_object* x_9; lean_object* x_10; lean_object* x_11; lean_object* x_12; lean_object* x_13; lean_object* x_14; lean_object* x_15; 
x_7 = lean_st_ref_get(x_5);
x_8 = lean_ctor_get(x_7, 0);
lean_inc_ref(x_8);
lean_dec(x_7);
x_9 = lean_st_ref_get(x_3);
x_10 = lean_ctor_get(x_9, 0);
lean_inc_ref(x_10);
lean_dec(x_9);
x_11 = lean_ctor_get(x_2, 2);
x_12 = lean_ctor_get(x_4, 2);
lean_inc(x_12);
lean_inc_ref(x_11);
x_13 = lean_alloc_ctor(0, 4, 0);
lean_ctor_set(x_13, 0, x_8);
lean_ctor_set(x_13, 1, x_10);
lean_ctor_set(x_13, 2, x_11);
lean_ctor_set(x_13, 3, x_12);
x_14 = lean_alloc_ctor(3, 2, 0);
lean_ctor_set(x_14, 0, x_13);
lean_ctor_set(x_14, 1, x_1);
x_15 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_15, 0, x_14);
return x_15;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0___redArg(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5) {
_start:
{
lean_object* x_7; lean_object* x_8; uint8_t x_9; 
x_7 = lean_ctor_get(x_4, 5);
x_8 = l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5);
x_9 = !lean_is_exclusive(x_8);
if (x_9 == 0)
{
lean_object* x_10; lean_object* x_11; 
x_10 = lean_ctor_get(x_8, 0);
lean_inc(x_7);
x_11 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_11, 0, x_7);
lean_ctor_set(x_11, 1, x_10);
lean_ctor_set_tag(x_8, 1);
lean_ctor_set(x_8, 0, x_11);
return x_8;
}
else
{
lean_object* x_12; lean_object* x_13; lean_object* x_14; 
x_12 = lean_ctor_get(x_8, 0);
lean_inc(x_12);
lean_dec(x_8);
lean_inc(x_7);
x_13 = lean_alloc_ctor(0, 2, 0);
lean_ctor_set(x_13, 0, x_7);
lean_ctor_set(x_13, 1, x_12);
x_14 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_14, 0, x_13);
return x_14;
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0___redArg(x_2, x_3, x_4, x_5, x_6);
return x_8;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__0() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("impossible; res.focusHyp not a hypothesis", 41, 41);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__1() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__0;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__2() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("unknown hypothesis `", 20, 20);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__3() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__2;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__4() {
_start:
{
lean_object* x_1; 
x_1 = lean_mk_string_unchecked("`", 1, 1);
return x_1;
}
}
static lean_object* _init_l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__5() {
_start:
{
lean_object* x_1; lean_object* x_2; 
x_1 = l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__4;
x_2 = l_Lean_stringToMessageData(x_1);
return x_2;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_8; lean_object* x_9; 
x_8 = l_Lean_TSyntax_getId(x_2);
lean_inc_ref(x_1);
x_9 = l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHyp(x_1, x_8);
lean_dec(x_8);
if (lean_obj_tag(x_9) == 1)
{
lean_object* x_10; lean_object* x_11; lean_object* x_12; 
x_10 = lean_ctor_get(x_9, 0);
lean_inc(x_10);
lean_dec_ref(x_9);
x_11 = lean_ctor_get(x_10, 0);
lean_inc_ref(x_11);
x_12 = l_Lean_Elab_Tactic_Do_ProofMode_parseHyp_x3f(x_11);
if (lean_obj_tag(x_12) == 1)
{
lean_object* x_13; lean_object* x_14; uint8_t x_15; lean_object* x_16; 
x_13 = lean_ctor_get(x_12, 0);
lean_inc(x_13);
lean_dec_ref(x_12);
x_14 = lean_ctor_get(x_1, 1);
lean_inc_ref(x_14);
lean_dec_ref(x_1);
x_15 = 0;
x_16 = l_Lean_Elab_Tactic_Do_ProofMode_addHypInfo(x_2, x_14, x_13, x_15, x_3, x_4, x_5, x_6);
if (lean_obj_tag(x_16) == 0)
{
uint8_t x_17; 
x_17 = !lean_is_exclusive(x_16);
if (x_17 == 0)
{
lean_object* x_18; 
x_18 = lean_ctor_get(x_16, 0);
lean_dec(x_18);
lean_ctor_set(x_16, 0, x_10);
return x_16;
}
else
{
lean_object* x_19; 
lean_dec(x_16);
x_19 = lean_alloc_ctor(0, 1, 0);
lean_ctor_set(x_19, 0, x_10);
return x_19;
}
}
else
{
uint8_t x_20; 
lean_dec(x_10);
x_20 = !lean_is_exclusive(x_16);
if (x_20 == 0)
{
return x_16;
}
else
{
lean_object* x_21; lean_object* x_22; 
x_21 = lean_ctor_get(x_16, 0);
lean_inc(x_21);
lean_dec(x_16);
x_22 = lean_alloc_ctor(1, 1, 0);
lean_ctor_set(x_22, 0, x_21);
return x_22;
}
}
}
else
{
lean_object* x_23; lean_object* x_24; 
lean_dec(x_12);
lean_dec(x_10);
lean_dec(x_2);
lean_dec_ref(x_1);
x_23 = l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__1;
x_24 = l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0___redArg(x_23, x_3, x_4, x_5, x_6);
lean_dec(x_6);
lean_dec_ref(x_5);
lean_dec(x_4);
lean_dec_ref(x_3);
return x_24;
}
}
else
{
lean_object* x_25; lean_object* x_26; lean_object* x_27; lean_object* x_28; lean_object* x_29; lean_object* x_30; 
lean_dec(x_9);
lean_dec_ref(x_1);
x_25 = l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__3;
x_26 = l_Lean_MessageData_ofSyntax(x_2);
x_27 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_27, 0, x_25);
lean_ctor_set(x_27, 1, x_26);
x_28 = l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__5;
x_29 = lean_alloc_ctor(7, 2, 0);
lean_ctor_set(x_29, 0, x_27);
lean_ctor_set(x_29, 1, x_28);
x_30 = l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0___redArg(x_29, x_3, x_4, x_5, x_6);
lean_dec(x_6);
lean_dec_ref(x_5);
lean_dec(x_4);
lean_dec_ref(x_3);
return x_30;
}
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0(x_1, x_2, x_3, x_4, x_5, x_6);
lean_dec(x_6);
lean_dec_ref(x_5);
lean_dec(x_4);
lean_dec_ref(x_3);
return x_8;
}
}
LEAN_EXPORT lean_object* l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0___redArg___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0___redArg(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0_spec__0___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6) {
_start:
{
lean_object* x_7; 
x_7 = l_Lean_addMessageContextFull___at___00Lean_throwError___at___00Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo_spec__0_spec__0(x_1, x_2, x_3, x_4, x_5);
lean_dec(x_5);
lean_dec_ref(x_4);
lean_dec(x_3);
lean_dec_ref(x_2);
return x_7;
}
}
LEAN_EXPORT lean_object* l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___boxed(lean_object* x_1, lean_object* x_2, lean_object* x_3, lean_object* x_4, lean_object* x_5, lean_object* x_6, lean_object* x_7) {
_start:
{
lean_object* x_8; 
x_8 = l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo(x_1, x_2, x_3, x_4, x_5, x_6);
return x_8;
}
}
lean_object* initialize_Lean_Elab_Tactic_Do_ProofMode_MGoal(uint8_t builtin);
static bool _G_initialized = false;
LEAN_EXPORT lean_object* initialize_Lean_Elab_Tactic_Do_ProofMode_Focus(uint8_t builtin) {
lean_object * res;
if (_G_initialized) return lean_io_result_mk_ok(lean_box(0));
_G_initialized = true;
res = initialize_Lean_Elab_Tactic_Do_ProofMode_MGoal(builtin);
if (lean_io_result_is_error(res)) return res;
lean_dec_ref(res);
l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__0 = _init_l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__0();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__0);
l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__1 = _init_l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__1();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__1);
l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__2 = _init_l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__2();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__2);
l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__3 = _init_l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__3();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default___closed__3);
l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default = _init_l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult_default);
l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult = _init_l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_instInhabitedFocusResult);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__0 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__0();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__0);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__1 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__1();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__1);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__2 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__2();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__2);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__3 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__3();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__3);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__4 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__4();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__4);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__5 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__5();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__5);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__6 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__6();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__6);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__7 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__7();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__7);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__8 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__8();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__8);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__9 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__9();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__9);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__10 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__10();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__10);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__11 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__11();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__11);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__12 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__12();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__12);
l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__13 = _init_l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__13();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_focusHyp___closed__13);
l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__0 = _init_l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__0();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__0);
l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__1 = _init_l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__1();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__1);
l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__2 = _init_l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__2();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_refl___closed__2);
l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps___closed__0 = _init_l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps___closed__0();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps___closed__0);
l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps___closed__1 = _init_l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps___closed__1();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_FocusResult_rewriteHyps___closed__1);
l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__0 = _init_l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__0();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__0);
l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__1 = _init_l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__1();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__1);
l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__2 = _init_l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__2();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__2);
l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__3 = _init_l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__3();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__3);
l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__4 = _init_l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__4();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__4);
l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__5 = _init_l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__5();
lean_mark_persistent(l_Lean_Elab_Tactic_Do_ProofMode_MGoal_focusHypWithInfo___closed__5);
return lean_io_result_mk_ok(lean_box(0));
}
#ifdef __cplusplus
}
#endif
